import org.rowingmanager.util.command.ImageResizer;
class ImageService {

    boolean transactional = false
    ImageResizer imageResizer
    def avatarResize (String original, String created){
      log.info("Original: "+original+" Created:"+created)
      imageResizer = new ImageResizer(original,created)
      log.info("Trying to resize image...")
      if(imageResizer.createAvatar())
         log.info("rowingmanager.domain.Image resized!")
      else
         log.info("ERROR: Could not resize image!")
    }
}
